package com.genius.reservation.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.genius.reservation.common.BaseDao.BaseDao;
import com.genius.reservation.inspect.entity.InspectName;
import com.genius.reservation.reservation.entity.ReservationInformation;
import com.genius.reservation.reservation.entity.ReservationOrderInformation;

public interface ReservationOrderInformationMapper extends BaseDao<ReservationOrderInformation> {
    default LambdaQueryWrapper<ReservationOrderInformation> getWrapper(){
        return new LambdaQueryWrapper();
    }
    default ReservationOrderInformation up(ReservationOrderInformation reservation){
        this.update(reservation);
        return reservation;
    }

    default ReservationOrderInformation ad(ReservationOrderInformation reservation){
        this.save(reservation);
        return reservation;
    }
}
